package cn.wolfcode.luowowo.comment.service;

import cn.wolfcode.luowowo.article.domain.ItemShop;
import cn.wolfcode.luowowo.comment.domain.UserGoods;
import cn.wolfcode.luowowo.comment.query.UserGoodsQuery;
import org.springframework.data.domain.Page;

/**
 * 用户商品服务接口
 */
public interface IUserGoodsService {
    /**
     *
     * @param userGoods
     */
    void save(UserGoods userGoods);

    /**
     * 分页
     * @param
     * @return
     */
    Page<UserGoods> query(UserGoodsQuery qo);

    /**
     * 用户兑换商品
     * @param id
     * @param itemShop
     */
    void cashGift(Long id, ItemShop itemShop);
}
